#!/usr/bin/python
#example code, lecture 11
#Lecture 11:Testing and debugging

def silly():
    res =[  ]
    done = False
    while not done:
        elem = raw_input( 'Enter a element. Return when done.' )
        if elem == '':
            done = True
        else:
            res.append( elem )
    #comment next line because the problem is not in the first part of the program
    #print "res should be [1,'a',2]:", res
    tmp = res[ : ]
    #print 'tmp:', tmp, 'res:', res
    tmp.reverse()
    #fix where the bug is
    #print 'tmp:', tmp, 'res:', res
    isPal = ( res == tmp )
    #print 'tmp:', tmp, 'res:', res
    if isPal:
        print 'is a palidrome'
    else:
        print 'is NOT a palidrome'

silly()
